home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / simulato / v2_3_mc6.tz / v2_3_mc6 / testfiles / divs.asm < prev    next >
Assembly Source File  |  1994-05-02  |  297b  |  15 lines

  1. ;
  2. ;  divs.asm
  3. ;  C. Ward.  2/18/93
  4. ;  Demo program to test signed division.  At the conclusion
  5. ;  check the value of d0, it should contain 00050035, i.e.
  6. ;  the quotient is $0008 and the remainder is $0035.
  7. ;
  8.     org $1000
  9.     move.l #800,d0
  10.     divs #15,d0
  11.     move #228,d7
  12.     trap #14
  13.     end
  14.  
  15.